#ifndef SETUP_H
#define SETUP_H

const int NBD_ToF = 2;
const int NCH_ToF = 16;
const int NAllCH_ToF = NCH_ToF * NBD_ToF;
const int MaxBuf_ToF = 20;
const int MaxSig_ToF = 10000;
const int NMaxHit_ToF = 10;

const long long WidCoin_ToF = 50;                                    // unit: ns
const double TimeCrs_ToF = 1000.0 / 480.0, TimeFine_ToF = 2.0 / 178; // unit: ns
const int NTDL_ToF = 200;

const long long WidCoin_TPC = 1000; // unit: ns
const int NBD_TPC = 4;
const int NCH_TPC = 64;
const int MaxSig_TPC = 1000;
const int MaxNData_TPC = 4096;

const long long WidCoin_ToF_TPC = 2000;

#endif